# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libwnck
pkgver=2.31.0
pkgrel=6
pkgdesc="Window Navigator Construction Kit"
url="https://git.gnome.org/browse/libwnck"
arch="all"
license="LGPL-2.0+"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
depends=
makedepends="glib-dev gtk+2.0-dev libx11-dev pango-dev cairo-dev intltool
	startup-notification-dev gobject-introspection-dev libxres-dev"
source="https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz"

prepare() {
	cd "$builddir"
	update_config_sub
	default_prepare
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-static
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	rm "$pkgdir"/usr/bin/wnckprop \
		"$pkgdir"/usr/bin/wnck-urgency-monitor
}
sha512sums="54262a08882021f08f3ba7f2ddfa33fc1f02e391a0f61cf999a50a089e0d277dfe13ab133c1a46e9abf0599bd24c21dacff80b51013cbb1375d2cd71ac9abbe9  libwnck-2.31.0.tar.xz"
